Skip to content

fix(docs): redirect base-path 404 + Java SDK in README#392

Merged
pratyush618 merged 2 commits into
masterfrom
fix/docs-redirect-basename
Jul 8, 2026
Merged

fix(docs): redirect base-path 404 + Java SDK in README#392
pratyush618 merged 2 commits into
masterfrom
fix/docs-redirect-basename

Conversation

@pratyush618

@pratyush618 pratyush618 commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Redirect base-path 404 + Java SDK in README

1. Redirect meta-refresh dropped the deploy base path (404)

Follow-up to #391. The redirect stub's meta-refresh URL is resolved against the origin, not the router — so under the /taskito deploy base it emitted url=/python/getting-started/installation (no prefix) and the host 404'd. The SPA navigate() path was already basename-aware; only the static meta tag wasn't.

Fix: prefix import.meta.env.BASE_URL on the refresh + canonical URLs. This also repairs the pre-existing architecture / more/* / resources redirects, which had the same latent bug.

Verified with a production-basename build (DOCS_BASE_PATH=/taskito): stubs now emit url=/taskito/….

2. Java SDK in the README

Java is published to Maven Central (org.byteveda:taskito) but the root README still listed only Python and Node. Added it to the SDK table, the comparison row, and a Maven Central badge.

Summary by CodeRabbit

  • Documentation

    • Added a Maven Central badge to the project links section.
    • Updated the SDK comparison table to include Java support.
  • Bug Fixes

    • Improved documentation route redirects so direct page loads respect the app’s base path.

@coderabbitai

coderabbitai Bot commented Jul 8, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

This PR adds a Maven Central badge and Java SDK mentions to README.md, and fixes the docs redirect route to prepend the deployment base path (from import.meta.env.BASE_URL) to redirect and canonical URLs in the meta() function.

Changes

README Java SDK Updates

Layer / File(s) Summary
Badge and SDK table updates
README.md
Adds a Maven Central badge and updates the SDK table and Comparison table to include Java support.

Docs Redirect Base Path Fix

Layer / File(s) Summary
Meta redirect base-path handling
docs/app/routes/docs.$.tsx
Computes a base path from import.meta.env.BASE_URL and prepends it to the redirect and canonical URLs in meta().

Estimated code review effort: 1 (Trivial) | ~5 minutes

Possibly related PRs

  • ByteVeda/taskito#294: Also modifies README badges and the Comparison table content in the same file.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the two main changes: base-path redirect fixes and README updates for the Java SDK.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/docs-redirect-basename

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added the docs label Jul 8, 2026
The redirect stub's meta-refresh URL is resolved against the origin, not the router, so under the /taskito deploy base it dropped the prefix and 404'd (e.g. section-landing and old-URL redirects). Prefix import.meta.env.BASE_URL; the SPA navigate() path was already basename-aware.
Java is published to Maven Central (org.byteveda:taskito); list it in the SDK table, comparison, and badges alongside Python and Node.
@pratyush618
pratyush618 force-pushed the fix/docs-redirect-basename branch from e39d082 to fcab92e Compare July 8, 2026 04:43

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
docs/app/routes/docs.$.tsx (1)

51-51: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Canonical link uses a base-relative path, not an absolute URL.

href is only prefixed with the deploy base path, not the origin/scheme. Canonical tags are conventionally absolute URLs for SEO tooling; this is pre-existing behavior unrelated to the base-path bug being fixed here, but worth revisiting separately.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/app/routes/docs`.$.tsx at line 51, The canonical link in the docs route
is currently built as a base-relative path instead of an absolute URL. Update
the canonical URL generation in the docs route logic that emits the link tag so
`href` includes the full origin and scheme, not just the deploy base path, while
keeping the base-path handling intact for the existing fix. Use the canonical
link creation in `docs.$.tsx` as the place to adjust the URL assembly.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@docs/app/routes/docs`.$.tsx:
- Line 51: The canonical link in the docs route is currently built as a
base-relative path instead of an absolute URL. Update the canonical URL
generation in the docs route logic that emits the link tag so `href` includes
the full origin and scheme, not just the deploy base path, while keeping the
base-path handling intact for the existing fix. Use the canonical link creation
in `docs.$.tsx` as the place to adjust the URL assembly.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: bb9dcfb3-4447-43ee-ad3e-eae8577bbcae

📥 Commits

Reviewing files that changed from the base of the PR and between 07d8029 and fcab92e.

📒 Files selected for processing (2)
  • README.md
  • docs/app/routes/docs.$.tsx

@pratyush618
pratyush618 merged commit fda28e6 into master Jul 8, 2026
15 checks passed
@pratyush618
pratyush618 deleted the fix/docs-redirect-basename branch July 8, 2026 04:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant